package HomeWork;
import java.util.Scanner;

public class Lucky01 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入你的四位会员号：");
        int a=sc.nextInt();
        int b=a%10;
        int c=a/10%10;
        int d=a/100%10;
        int e=a/1000;
        int f=b+c+d+e;
        System.out.println("顾客的你会员号之和为："+f);
        boolean g=f>20;
        System.out.println("是幸运客户吗："+g);
    }
}
